package design.patterns.factorymethod;

public class FactoryClient {

    private static Bike bike;

    public static void main(String[] args) {
        bike = new ScottBikeFactory().getBike();
        printBikeDetails(bike);
        bike = new CubeBikeFactory().getBike();
        printBikeDetails(bike);
    }

    public static void printBikeDetails(Bike bike) {
        System.out.println("I created a " + bike.getBrand() + " bike with " + bike.getDerailleur() + " derailleur and " + bike.getBrakes() + " brakes.");
    }
}
